/*    */ package com.fizz.redpacket.config;

/*    */
/*    */ import com.fizz.redpacket.lock.MyRedisLock;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.context.annotation.Bean;
/*    */ import org.springframework.context.annotation.Configuration;
/*    */ import org.springframework.data.redis.core.RedisTemplate;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Configuration
/*    */ public class RedisLockConfig
/*    */ {
/*    */   @Autowired
/*    */   RedisTemplate<String, Object> redisTemplate;
/* 25 */   int expireTime = 60;
/*    */   
/*    */   @Bean
/*    */   public MyRedisLock createRedisLock() {
/* 29 */     return new MyRedisLock(this.redisTemplate, this.expireTime);
/*    */   }
/*    */ }


/* Location:              /home/fizz/Music/大学学习的知识总结/收获比较大的项目/redpacket/redpacket/src/main/docker8081/redpacket-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/com/fizz/redpacket/config/RedisLockConfig.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */